<page-header [autoTitle]="false"></page-header>

<nz-spin *ngIf="isLoading" class="modal-spin"></nz-spin>
<nz-card *ngIf="!isLoading">
  <nz-tabset [nzSelectedIndex]="status -1">
    <nz-tab [nzTitle]="'全部订单'">
      <all-order-list [allProducts]="allProducts"></all-order-list>
    </nz-tab>
    <ng-container *ngFor="let method of paymentMethod;let i = index;">
      <nz-tab [nzTitle]="method.value">
        <cake-order-list [method]="method.key" [allProducts]="allProducts"></cake-order-list>
      </nz-tab>
    </ng-container>
  </nz-tabset>
</nz-card>
